package edu.zut.part4;

import java.util.Scanner;

public class ArrayDemo {
    public static void main(String[] args){
        int[] scores = new int [10];
        for (int i = 0; i < scores.length; i++) {
            System.out.println("请输入第" + (i+1) + "个学生成绩");
            Scanner input = new Scanner(System.in);
            scores[i] = input.nextInt();
        }
        for (int score : scores) {
            System.out.print(score + "  ");
        }
        System.out.println();
        int count = 0;
        do {

            if (scores[count] <= 100 && scores[count] >= 0)
                if (scores[count] >= 90)
                    System.out.println("优秀");
                else if (scores[count] >= 60)
                    System.out.println("合格");
                else
                    System.out.println("不合格");
            else System.out.println("你输入的成绩不合法");
            count++;
        }while (count <10 );

    }
}
